package model;

import org.springframework.data.annotation.CreatedBy;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.Id;
import org.springframework.data.annotation.QueryAnnotation;

import java.util.List;

/**
 * <p>
 * Title: 轮播信息模型
 * </p>
 * <p>
 * Description: Function Description
 * </p>
 * <p>
 * Copyright: Copyright (c) 2015
 * </p>
 * <p>
 * Create Time: 2016/5/26
 * </p>
 *
 * @author YangYang
 *         <p>
 *         Update Time:
 *         </p>
 *         <p>
 *         Updater:
 *         </p>
 *         <p>
 *         Update Comments:
 *         </p>
 */

public class CarouselModel {
    /**
     * mongodb id
     */
    @Id
    private String id;
    /**
     * 序号
     */

    private int number;

    /**
     * 标题
     */
    private String title;

    /**
     * 内容
     */
    private String content;

    /**
     * 上传文件
     */
    private List<String> files;

    /**
     * 上传人
     */
    @CreatedBy
    private String creator;

    /**
     * 上传时间
     */
    @CreatedDate
    private long createTime;
}
